import ReactDom from 'react-dom/client'
import {StrictMode, Suspense} from "react";
import App from "@/App";
import '@/style/index.less'
import {HashRouter} from "react-router-dom";
import {Provider} from "react-redux";
import store from "@/store";

const root = ReactDom.createRoot(document.querySelector('#root'))

root.render(
    <StrictMode>
        <Provider store={store}>
            <HashRouter>
                <Suspense fallback={<div>加载中~</div>}>
                    <App/>
                </Suspense>
            </HashRouter>
        </Provider>
    </StrictMode>
)